package edu.hgnc.beans;

import org.springframework.stereotype.Component;

@Component
public class Student {

	private String name;
	private String no;
	private String classId;
	private String gender;

	public Student() {
		System.out.println("student的构造方法");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Override
	public String toString() {
		return "Student{" +
				"name='" + name + '\'' +
				", no='" + no + '\'' +
				", classId='" + classId + '\'' +
				", gender='" + gender + '\'' +
				'}';
	}
}
